package com.abe.jmcl.api;

import com.abe.jmcl.utils.Constant;
import com.abeframe.core.ConstantCore;
import com.abeframe.core.utils.SPUtils;

public class AppNetBaseUrlUtils {

    public static String empty(){
        return "";
    }

    public static String WebUrl() {
        return new SPUtils(ConstantCore.APP_SP_BASE).getString(Constant.WEB_ADDRESS_WEBURL);
    }

    public static String MobileUrl() {
        return new SPUtils(ConstantCore.APP_SP_BASE).getString(Constant.MOBILE_ADDRESS_URL);
    }

    //保存Web地址
    public static void saveWebUrl(String webUrl) {
        new SPUtils(ConstantCore.APP_SP_BASE).putString(Constant.WEB_ADDRESS_WEBURL, webUrl);
    }

    //保存手机服务基地址
    public static void saveMobileBaseUrl(String mobileBaseUrl) {
        new SPUtils(ConstantCore.APP_SP_BASE).putString(Constant.MOBILE_ADDRESS_URL, mobileBaseUrl);
    }
}
